package com.hospital.common.enums.payment.module;

/**
 * 订单状态枚举
 * <br>
 * 0: 进行中
 * 1: 已完成
 * 2: 已取消
 * @author yhn
 * @version 1.0
 */
public enum OrderStatus {
    IN_PROGRESS(0),
    COMPLETED(1),
    CANCELED(2);
    public final Integer value;
    OrderStatus(Integer value) {
        this.value = value;
    }
    public static OrderStatus valueOf(Integer value) {
        for (OrderStatus orderStatus : OrderStatus.values()) {
            if (orderStatus.value.equals(value)) {
                return orderStatus;
            }
        }
        return null;
    }
}
